<?php
/**
 * 
 * ConfigAction.class.php (后台设置模块)
 *
 * @package     XYCMS
 *
 * @author      Rakiy[Xux851@Gmail.com]
 *
 */
if(!defined("XYCMS")) exit("Access Denied");
class ConfigAction extends AdminbaseAction{
    public function _initialize(){
        $this->dao = D('Config');
    }
    public function index(){
        import('ORG.Util.Form');
        $groupid = I('get.groupid', 1, 'intval');
        $map['groupid'] =   array('eq' , $groupid);
        $map['status']  =   array('eq', 1);
        $configs = $this->dao->where($map)->select();
        $this->assign('configs',$configs);
        $this->assign('form', new Form());
        $this->display();
    }
}